﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;

namespace YJKRevitDimension.SymbolTextSetting
{
	[Transaction(TransactionMode.Manual)]
	public class UnitTest1 : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			UIDocument activeUIDocument = commandData.Application.ActiveUIDocument;
			Selection selection = activeUIDocument.Selection;
			IndexMarkCollector indexMarkCollector = new IndexMarkCollector(activeUIDocument.Document);
			indexMarkCollector.CollectorInit();
			new IndexMarkFontSetting(indexMarkCollector, GridAndIndexMarkOper.InTheCircle).DoSetGridAndIndexMarkStyle();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
